#-- coding=utf-8 ---*---
# __author__ = 'wenke1'

def jisuanqi(*args):
    results=sum(args)
    return results

def getscore(name,shuxue,yuwen,ziran):
    score=shuxue+yuwen+ziran
    return  score

print getscore('wene',shuxue=100,yuwen=80,ziran=80)
print getscore('xiaoli',shuxue=100,yuwen=80,ziran=70)

def getScore(name,**items):
    score = 0
    print items.keys()
    for i in items.values():
        score+=i
    print name.decode('utf-8')
    return name,score
dict1=dict(shuxue=100,yuwen=80)
print dict1
print getScore('wenke',shuxue=100,yuwen=80,zhengzhi=70,dili=60)
print getScore('小红',shuxue=100,yuwen=80)
print getScore('小红',shuxue=100,yuwen=80)[0].decode('utf-8')
print getScore('lillllllllllll',**dict1)

print jisuanqi,id(jisuanqi),type(jisuanqi)
f=jisuanqi
print f()

def add_end(L='S'):
    L=L+'L'
    return L
print add_end()
#print "L is:",L  L=['/n']
print add_end()
print add_end()

# def add_end(L=None):
#     if L is None:
#         L = []
#     L.append('END')
#     return L

def jisuanqi(*args):
    results=sum(args)
    return results

list=[1,2]

print jisuanqi(list[0],list[1])
print jisuanqi(*list)


